#pragma once
#include "PPProjTreeImp.h"

namespace LBPROJSTREAM
{
    class IProjPlanStreamDatabase;
}

namespace LBPROJ
{
    class CPPProjTreeReadWriteHelper
    {
    public:
        CPPProjTreeReadWriteHelper(CProjectTree* pProjTree);
        ~CPPProjTreeReadWriteHelper();

        bool Open(LBPROJSTREAM::IProjPlanStreamDatabase* pDb);
        bool Write(LBPROJSTREAM::IProjPlanStreamDatabase* pDb);

    protected:
        bool ReadProjectPlan(LBPROJSTREAM::IProjPlanStreamDatabase* pDb);
        bool WriteProjectPlan(LBPROJSTREAM::IProjPlanStreamDatabase* pDb);

    protected:
        CProjectTree* m_pProjTree;

    };

}

